package org.dromara.llm.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.llm.domain.SysTemplate;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 提示词模板业务对象 sys_template
 *
 * @author Miles Meng
 * @date 2025-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysTemplate.class, reverseConvertGenerate = false)
public class SysTemplateBo extends BaseEntity {
    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateName;

    /**
     * 模板描述
     */
    private String templateDesc;

    /**
     * 模板内容
     */
    @NotBlank(message = "模板内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateContent;

    /**
     * 模板分类
     */
    private String category;

    /**
     * 是否为默认配置: 1-是, 0-否
     */
    private String isDefault;

    /**
     * 状态(1启用 0禁用)
     */
    private String state;

    /**
     * 创建者，系统、个人
     */
    private String owner;
    /**
     * 是否需要语音合成标识 1-是, 0-否
     */
    private String ttsFlag;
}
